from rest_framework import serializers
from user.models import UserModel,RoleModel,ResourceModel

#资源
class ResourceSerializer(serializers.ModelSerializer):
    class Meta:
        model = ResourceModel
        fields = '__all__'

#角色
class RoleSerializer(serializers.ModelSerializer):
    class Meta:
        model = RoleModel
        fields = '__all__'

# 用户
class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = UserModel
        fields = '__all__'




